package Route;


public class Statie implements Comparable<Statie>, Continut {

	final int cod;
	String nume;
	int x;
	int y;
	int h;

	public int getH() {
		return h;
	}

	public void setH(int h) {
		this.h = h;
	}

	public Statie(final int cod, String nume, int x, int y) {
		this.cod = cod;
		this.nume = nume;
		this.x = x;
		this.y = y;
	}

	public int compareTo(final Statie s) {
		return this.cod == s.cod ? 0 : -1;
	}

	public String getNume() {
		return nume;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public int getCod() {
		return cod;
	}
	
	public String toString(){
		return nume;
	}
	
}